package com.example.sprintboot.dto;

/**
 * 分页DTO
 */
public class PageDto {
    private Integer pageNum = 1;
    private Integer pageSize = 4;

    public PageDto() {}

    public PageDto(Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum != null ? pageNum : 1;
        this.pageSize = pageSize != null ? pageSize : 4;
    }

    // Getters and Setters
    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum != null ? pageNum : 1;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize != null ? pageSize : 4;
    }
}
